$(function () {
    $.get("../extend/list", function (r) {
        vm.cancleList = r.list;
    });
    console.log(vm.cancleList);
});

var vm = new Vue({
    el: '#rrapp',
    data: {
        cancleList: []
    },
    methods: {
        share: function () {
            var id = getSelectedRow();
            if (id == null) {
                return;
            }
            openWindow({
                title: '分享页面点击详情',
                type: 2,
                content: '../share/extendSharebill.html?channel=' + id
            })
        },
        invite: function () {
            var id = getSelectedRow();
            if (id == null) {
                return;
            }
            openWindow({
                title: '邀请会员查看',
                type: 2,
                content: '../sysapi/user.html?channel=' + id
            })
        },
        amount: function () {
            var id = getSelectedRow();
            if (id == null) {
                return;
            }
            openWindow({
                title: '消费记录详情',
                type: 2,
                content: '../connection/apiamountbill.html?channel=' + id
            })
        }
    }
});